import request from '@/utils/request'

// 查询用户目标列表
export function listGoals(query) {
  return request({
    url: '/fitsculpt/goals/list',
    method: 'get',
    params: query
  })
}

// 查询用户目标详细
export function getGoals(goalId) {
  return request({
    url: '/fitsculpt/goals/' + goalId,
    method: 'get'
  })
}

// 新增用户目标
export function addGoals(data) {
  return request({
    url: '/fitsculpt/goals',
    method: 'post',
    data: data
  })
}

// 修改用户目标
export function updateGoals(data) {
  return request({
    url: '/fitsculpt/goals',
    method: 'put',
    data: data
  })
}

// 删除用户目标
export function delGoals(goalId) {
  return request({
    url: '/fitsculpt/goals/' + goalId,
    method: 'delete'
  })
}
